-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Go version to 1.20 #4563
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4563 +/- ##
==========================================
- Coverage 56.25% 54.46% -1.79%
==========================================
Files 653 914 +261
Lines 64699 85278 +20579
==========================================
+ Hits 36396 46447 +10051
- Misses 25362 35247 +9885
- Partials 2941 3584 +643
Flags with carried forward coverage won't be shown. Click here to find out more.
|
FVM Benchstat comparisonThis branch with compared with the base branch onflow:master commit 9682381 The command Collapsed results for better readability
|
utils/unittest/fixtures.go
Outdated
@@ -417,7 +417,7 @@ func BlockHeaderFixture(opts ...func(header *flow.Header)) *flow.Header { | |||
|
|||
func CidFixture() cid.Cid { | |||
data := make([]byte, 1024) | |||
_, _ = rand.Read(data) | |||
_, _ = crand.Read(data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it'd be best not to swallow this error. Maybe update the method either to accept a testing object and require no error, or just return the error. It doesn't look like this fixture is even used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather delete non-used functions. Thanks for the flag!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the same time, for fixtures I think failing randomness would just lead to the byte array remaining all zeros, which is still a valid "fixture".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added one comment, but otherwise looks good
bors merge |
Update Go version to 1.20